package com.ym.jiujiangeyou;

import com.ym.jiujiangeyou.app.AppManager;
import com.ym.jiujiangeyou.app.MyApplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * @author 叶铭
 * @email yeming_1001@163.com
 * @version V1.0
 */
public class SceneryIntroduct extends Activity {

	private TextView title_text, s_introduct;
	private LinearLayout back_layout;

	public SceneryIntroduct() {
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		// 添加Activity到堆栈
		AppManager.getAppManager().addActivity(this);
		super.setContentView(R.layout.scenery_introduct);

		Bundle bundle = this.getIntent().getExtras();

		title_text = (TextView) findViewById(R.id.title_text);
		// back_layout = (LinearLayout) findViewById(R.id.title_back) ;
		s_introduct = (TextView) findViewById(R.id.s_introduct);

		title_text.setText(R.string.detail_introduct);
		s_introduct.setText(bundle.getString("introduct").toString());
		/*
		 * back_layout.setOnClickListener(new OnClickListener() {
		 * 
		 * @Override public void onClick(View arg0) { // TODO Auto-generated
		 * method stub Intent intent = new Intent(SceneryIntroduct.this,
		 * SceneryDetails.class) ; startActivity(intent) ;
		 * overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
		 * SceneryIntroduct.this.finish() ; } }) ;
		 */

	}

	@Override
	public void onBackPressed() {
		// TODO Auto-generated method stub
		super.onBackPressed();
		this.finish();
	}

}
